export const mixin = {
  data() {
    return {
      selectData: []
    }
  },
  methods: {

    searchHandle() {
      const params = {};
      this.formData.forEach(item => {
        params[item.field] = item.value;
      });
      this.$refs.listTable.load(params);
    },
    resetHandle() {
      this.formData.forEach(item => {
        item.value = null;
      });
      this.$refs.listTable.load(this.pageTableConfig.initParam);
    },
    //状态样式显示
    bpmn_stateHandle(h, row) {
      // console.log('状态样row', row.suspensionState);
      return h('span',
        {
          class: {
            pass: row.suspensionState == 2,
            warning: row.suspensionState == 1,
            fail: row.suspensionState == 0  
          }
        },
        [
          h('span',
          {
            class: 'circle'
          }
          ),
          row.suspensionStateStr
        ]
      )
    },
  }
}